package com.cqupt.mapper;

import com.cqupt.pojo.AuthorityTemplate;
import com.cqupt.pojo.AuthorityTemplateExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthorityTemplateMapper {
    long countByExample(AuthorityTemplateExample example);

    int deleteByExample(AuthorityTemplateExample example);

    int deleteByPrimaryKey(String templateName);

    int insert(AuthorityTemplate record);

    int insertSelective(AuthorityTemplate record);

    List<AuthorityTemplate> selectByExampleWithBLOBs(AuthorityTemplateExample example);

    List<AuthorityTemplate> selectByExample(AuthorityTemplateExample example);

    AuthorityTemplate selectByPrimaryKey(String templateName);

    int updateByExampleSelective(@Param("record") AuthorityTemplate record, @Param("example") AuthorityTemplateExample example);

    int updateByExampleWithBLOBs(@Param("record") AuthorityTemplate record, @Param("example") AuthorityTemplateExample example);

    int updateByExample(@Param("record") AuthorityTemplate record, @Param("example") AuthorityTemplateExample example);

    int updateByPrimaryKeySelective(AuthorityTemplate record);

    int updateByPrimaryKeyWithBLOBs(AuthorityTemplate record);
}